package com.ant.backstage.utils.validation.inter;

import com.ant.backstage.utils.validation.impl.CheckPwdValidation;
import org.springframework.context.annotation.Import;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Documented //用来标注生成javadoc的时候是否会被记录
@Constraint(validatedBy = {CheckPwdValidation.class})
@Import({CheckPwd.class})
public @interface CheckPwd {
    String massage() default "密码格式错误";

    Class<?>[] group() default {};

    Class<? extends Payload>[] payload() default {};

}
